

import 'package:xim/common/get_style_view.dart';
import 'package:xim/http/apis/user/user_api.dart';
import 'package:xim/http/apis/user/user_model.dart';

class NewFriendsController extends GetxStateMixinController<dynamic>{

  // 好友列表
  List<UserFriendModel> friends = [];

  late UserInfoModel selfUerInfo;

  @override
  Future dataInit() async {
    selfUerInfo = await UserApi.queryUserInfo();
    friends = await UserApi.queryFriends(status: null);
    friends.sort((e1,e2)=>e2.createTime.compareTo(e1.createTime));
  }

}